home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
shsource.zip
/
SHSOURCE.TXT
< prev
Wrap
Text File
|
1993-01-01
|
4KB
|
109 lines
Using Word for Windows 2.0 to write source code.
Do you write software?
Do you wish your editor had more features?
Tired of text mode, even with all its speed?
Ever wanted to put a chart or spreadsheet into your document?
How about colorizing parts of it.
I am a professional programmer, and have converted almost exclusively
to using Microsoft Windows as my development environment. Within that
environment I use Microsoft Word for Windows 2.0 (Winword). I write
letters, user manuals, memos, and for the past year I have been writing
my source code in Winword. I write assembly and C software for uP's
like the 6805, 8051, and the 6811. I also write C code to execute on
80x86 uP's.
The file shsource.dot is a winword template. This template is, for the
most part, a collection of macros that intercept various commands like
file save, file open, file exit, and file close.
There are new items on the menus like-
Edit Source Code Setup,
Edit Module Settings,
Insert Select to bookmark,
Insert Function Entry,
Format Color,
Tools Blue Comments,
Window Cascade, and
Help About Template
Under the Help About Template, is a brief description of the other macros
in the collection.
**************************************************************************
To Install shsource.dot
simply copy it to the directory where winword.exe is installed.
**************************************************************************
To start a new source code document
Start winword, then choose file new,
Select shsource in the 'use template' list box,
make sure that you are creating a New Document with the
radio button on document not template, and
click OK.
**************************************************************************
To attach an existing document
Start winword, and open the existing file
Choose File Save As... and make the extension .DOC,
Select Word Document (*.doc) in the 'Save File as Type:" listbox,
choose OK.
Select File Template,
Select shsource in the 'Attach Document To:' list.
choose OK.
Select Tools Macro,
Select AutoExec and choose OK.
**************************************************************************
To create a program manager icon for an existing document
Activate program manager
Choose File New,
Select the Program Item radio button, and choose OK,
Type in the description you want to appear under the icon.
In the command line field, type the following:
c:\winword\winword.exe c:\projects\widget_1.doc
In the Working directory, type:
c:\projects
Choose OK.
Note that this assumes 3 things:
1. winword.exe is in the path c:\winword
2. your source code is in the path c:\projects
3. your source document is named widget_1
**************************************************************************
If your source is spread across several files
Do the above, except- In the command line field, type the following:
c:\winword\winword.exe c:\projects\widget_1.doc widget_2 widget_3 /mAutoExec
It will then automatically open the files widget_1.doc, widget_2.doc, widget_3.doc
all from the same directory c:\projects.
The /mAutoExec tells word to automatically run the macro named AutoExec, which is in the
template. This macro causes the cascade macro to run.
**************************************************************************
**************************************************************************
**************************************************************************
I use this macro daily, and have been refining it for almost a year. The number
and frequency of refinements has dropped so low, I thought it was time to share it.
If you try it, thank you. If you grow to use it regularly, I would appreciate a
token of your appreciation, I am asking $20. This will get you registration information
so it does not bug you in 30 days, and notification of upgrades.
Even if you only try it, or if you use it but don't send in the registration
fee, I still welcome your suggestions.
To register, send your name printed as you wish it registered along with $20.
Address correspondence to:
Dave Smart
155 Vincent Rd.
Waterloo, IA 50701-1037